﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.MEGA
{
    /// <summary>
    /// 材料表
    /// </summary>
    [Table("MEGA_Material")]
    public class MEGA_Material
    {

        /// <summary>
        /// 乐观锁
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public String Editor { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? EditTime { get; set; }

        /// <summary>
        /// 材料图片
        /// </summary>
        public String Image { get; set; }

        /// <summary>
        /// 材料名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 批次
        /// </summary>
        public String Batch { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public String Num { get; set; } = "0";

        /// <summary>
        /// 分类
        /// </summary>
        public String TypeId { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public String TypeName { get; set; }

        /// <summary>
        /// 状态(0未使用,1正在使用,2已经使用)
        /// </summary>
        public Int32? State { get; set; } = 0;

        /// <summary>
        /// 二维码地址
        /// </summary>
        public String QrCodeUrl { get; set; }

        /// <summary>
        /// 加工时间
        /// </summary>
        public String JGTime { get; set; }

        /// <summary>
        /// 部位
        /// </summary>
        public String Parts { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Note { get; set; }

    }
}